package com.ssy.lingxi.report.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 报表辅助枚举
 * @author 彭冬冬
 * @date 2022/2/22
 * @version 2.0.0
 */
public enum ReportStringEnum {
    PAY_AFTER_SETTLEMENT(1,"结算后支付"),
    INVOICE_SETTLEMENT(2,"请款单结算"),
    ;
    private final Integer code;
    private final String message;

    ReportStringEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }

}
